package com.example.socket.websocket;

/**
 * @Classname WebSockerHandler
 * @Description TODO
 * @Date 2023/4/27 20:19
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public abstract class WebSockerHandler {

    /**
     * 消息拦截
     * @param webSocket
     * @param message
     */
    public abstract void handlerMessage(WebSocket webSocket,String message);


    public void handle(WebSocket webSocket,String message){
        handlerMessage(webSocket,message);
    }


}
